package src;
import java.util.ArrayList;

public class Task
{
	private String name;
	
	private int period;
	private int priority;
	private int deadline;
	private int bcet;
	private int wcet;
	
	private int wcrt;
	
	private ArrayList<Job> jobs;
	
	public Task()
	{
		jobs = new ArrayList<Job>();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	

	public int getPeriod() {
		return period;
	}

	public void setPeriod(int period) {
		this.period = period;
	}

	public int getPriority() {
		return priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

	public int getDeadline() {
		return deadline;
	}

	public void setDeadline(int deadline) {
		this.deadline = deadline;
	}

	public int getBcet() {
		return bcet;
	}

	public void setBcet(int bcet) {
		this.bcet = bcet;
	}

	public int getWcet() {
		return wcet;
	}

	public void setWcet(int wcet) {
		this.wcet = wcet;
	}

	public ArrayList<Job> getJobs() {
		return jobs;
	}

	public void setJobs(ArrayList<Job> jobs) {
		this.jobs = jobs;
	}

	public int getWcrt() 
	{
		return wcrt;
	}

	public void setWcrt(int wcrt) 
	{
		this.wcrt = wcrt;
	}
	
	public String toString()
	{
		return "Name : " + getName() + " WCET : " + getWcet() + " BCET : " + getBcet() + " WCRT : " + getWcrt();
	}
}